package models;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.GenericGenerator;

import play.db.jpa.Model;
import play.data.validation.Required;

@Entity
public class EtatCandid extends Model{
	
	@Required
	@Column(unique=true)
	public String id_etatcandid;
	
	@Required
	public String nom;
	
	public String getNom() {
		return nom;
	}

	public EtatCandid(String nom){
		this.nom=nom;
	}
	
	public String toString(){
		return nom;
	}
	
}
